package com.clj.blesample.entity;

import com.blankj.utilcode.util.SPUtils;

public class AppConstant {
    public static final String KEY_URL = "KEY_URL";
    public static final String KEY_FILE_UPLOAD = "KEY_FILE_UPLOAD";
    public static final String KEY_IP = "KEY_IP";
    public static final String KEY_PORT = "KEY_PORT";
    public static final String MANU_FACTURE_CODE = "wxsd";

    //纬度
    public static double mLatitude = 0;
    //经度
    public static double mLongitude = 0;

    public static String getIP() {
        return SPUtils.getInstance().getString(KEY_IP, "47.111.144.84");
    }

    public static void setIP(String ip) {
        SPUtils.getInstance().put(KEY_IP, ip);
    }


    public static String getPort() {
        return SPUtils.getInstance().getString(KEY_PORT, "10010");
    }

    public static void setPort(String port) {
        SPUtils.getInstance().put(KEY_PORT, port);
    }

    public static String getUrl() {
        return SPUtils.getInstance().getString(KEY_URL, "http://47.111.144.84/");
    }

    public static void setUrl(String url) {
        SPUtils.getInstance().put(KEY_URL, url);
    }


    public static String getFileUrl() {
        return SPUtils.getInstance().getString(KEY_FILE_UPLOAD, "http://47.111.144.84:82/");
    }

    public static void setFileUrl(String url) {
        SPUtils.getInstance().put(KEY_FILE_UPLOAD, url);
    }

}
